package com.design.sys.mapper;

import com.design.sys.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yang
 * @since 2023-06-09
 */
@Component //告知Spring这是一个Mapper bean，自动注入UserMapper bean
public interface UserMapper extends BaseMapper<User> {
    List<User> selectAll();

    public List<String> getRoleNameByUserId(Integer userId);
}
